/*
* pps-cloud
*/
package com.pitop.payment.api;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;

import com.pitop.payment.entity.PaymentTerm;

/**
 * 支付方式 api请求熔断器
 * @author berton
 */
@FeignClient(value = "berton-provider", fallback = PaymentTermFeignApiImpl.class)
public interface PaymentTermFeignApi {
    /**
     * 查询PaymentTerm一个详情信息
     * @param id 
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/paymentTerm/load")
    PaymentTerm load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 根据条件id查询PaymentTerm一个详情信息
     *
     * @param id 
     * @return BeanRet
     */
    @GetMapping(value = "/paymentTerm/load/id/{id}")
    PaymentTerm loadById(@RequestParam("id") java.lang.Long id);


    /**
     * 根据条件code查询PaymentTerm一个详情信息
     *
     * @param code 编码
     * @return BeanRet
     */
    @GetMapping(value = "/paymentTerm/load/code/{code}")
    PaymentTerm loadByCode(@RequestParam("code") java.lang.String code);

    /**
     * 删除PaymentTerm
     *
     * @return BeanRet
     */
    @DeleteMapping("/paymentTerm/delete")
    void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);


    /**
     * 查询PaymentTerm信息集合
     *
     * @return 分页对象
     */
    @PostMapping(value = "/paymentTerm/list")
    List<PaymentTerm> list(@RequestBody PaymentTerm paymentTerm,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);


    /**
     * 查询PaymentTerm信息集合
     *
     * @return 分页对象
     */
    @GetMapping(value = "/paymentTerm/list/by")
    List<PaymentTerm> listByPk(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code,@RequestParam("curPage") int curPage,@RequestParam("pageSize") int pageSize);




    /**
    * 统计PaymentTerm信息数量根据主键
    *
    * @return 总条数
    */
    @GetMapping(value = "/paymentTerm/count/by")
    Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code);

    /**
    * 统计PaymentTerm信息数量
    *
    * @return 总条数
    */
    @PostMapping(value = "/paymentTerm/count")
    Integer count(@RequestBody PaymentTerm paymentTerm);



    /**
     * 创建PaymentTerm
     *
     * @return BeanRet
     */
    @PostMapping("/paymentTerm/build")
    PaymentTerm build(@RequestBody PaymentTerm paymentTerm);


    /**
     * 修改PaymentTerm
     *
     * @return BeanRet
     */
    @PutMapping("/paymentTerm/modify")
    PaymentTerm modify(@RequestBody PaymentTerm paymentTerm);



}
